
using AutoMapper;
using Yozeev.SystemConfig;
using Yozeev.SystemConfig.Dtos;

namespace Yozeev.SystemConfig.Mapper
{

	/// <summary>
    /// 配置Menu的AutoMapper
    /// </summary>
	internal static class MenuMapper
    {
        public static void CreateMappings(IMapperConfigurationExpression configuration)
        {
            configuration.CreateMap <Menu,MenuListDto>();
            configuration.CreateMap <MenuListDto,Menu>();

            configuration.CreateMap <MenuEditDto,Menu>();
            configuration.CreateMap <Menu,MenuEditDto>();

        }
	}
}
